<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
    <title>我的</title>
    <link href="../Content/css/style.css" rel="stylesheet">
    <script src="../Content/js/rem.js"></script>
    <style>
        .gybox{
            padding: 0;
        }
        .gybox p{
            float: right;
            width: 80%;
            text-align: right;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }
    </style>
</head>
<body>
<div id="loading">
    <img src="../Content/imgs/kbloading.gif">
</div>
    <div class="wrap" >
        <header class="ck-mybg">
            <div class="mytx">
                <img  id="img">
            </div>
            <p class="ck-name">冥界摄政王</p>
            <p class="ck-rzzt">未认证</p>
        </header>
        <ul class="gybox">
            <li >姓名<p id="name">李哥</p></li>
            <li>身份证 <p id="idcard">1308181978*******7919</p></li>
            <li >电话 <p id="phonenum"></p></li>
            <li  style="border: none">住址<p id="adress">北京市昌邑区十八里店南桥</p></li>
        </ul>
        <a class="qrzbtn">去认证</a>
    </div>
<div class="weui-tabbar">
    <a href="javascript:;" class="weui-tabbar__item ">
                    <span style="display: inline-block;position: relative;">
                        <img src="../Content/imgs/ckbar1.png"  class="weui-tabbar__icon ">
                        <img src="../Content/imgs/iconbar1-ac.png"  class="weui-tabbar__icon js-active dn">
                    </span>
        <p class="weui-tabbar__label">大厅</p>
    </a>
    <a href="javascript:;" class="weui-tabbar__item weui-bar__item_on">
        <img src="../Content/imgs/ckbar2.png"  class="weui-tabbar__icon js-active dn">
        <img src="../Content/imgs/iconbar2-ac.png"  class="weui-tabbar__icon ">
        <p class="weui-tabbar__label">我的</p>
    </a>
</div>
    <script src="../Content/js/jquery-2.2.4.min.js"></script>
<script>

 $.ajax({
    type : "GET",
    url :localStorage.url+"/billList/getMeDetails",
    data :{
        id:localStorage.id
    },
    success : function(ro) {
        console.log(ro);
        $("#img").attr("src",ro.tou);
        $(".ck-name").html(ro.name);
        $("#name").html(ro.name);
        $("#idcard").html(ro.idcard);
        $("#phonenum").html(ro.phonenum);
        $("#adress").html(ro.adress);

        if(ro.isaudit!=0){
            $(".ck-rzzt").html("已认证");
            $(".qrzbtn").hide();
        }
        $("#loading").hide();

    },
    error : function(err) {
        alert(err);
    }
});
    var winH=$(window).height();
    $(".wrap").css("height",winH);
    $(function(){
        $(".weui-tabbar a").on('click',function () {
            var index=$(this).index();
            if(index=="0"){
                window.location.href="ck-index.html"
            }else {
                window.location.href="ck-my.html"
            }
        });
        $(".gybox li").on('click',function () {
            var id=$(this).attr("data-id");
            if(id=="0"){
                window.location.href="ck-fbwt.html"
            }else if(id=="1"){
                window.location.href="ck-myfb.html"
            }else if(id=="2"){
                window.location.href="ck-mycd.html"
            }
        })

    });

</script>
</body>
</html>
